package com.itboy.model;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @ClassName
 * @Description 系统配置
 * @Author 超 boy_0214@sina.com
 * @Date 2019/6/22 0022 1:52
 **/
@Data
@Entity
//@AllArgsConstructor
@Table(name = "t_sys_config")
public class SysConfig implements Serializable {
    private static final long serialVersionUID = 8533646251735673553L;

    public SysConfig() {}

    private static class SysSetupHolder{
        private final static SysConfig instance = new SysConfig();
    }
    public static SysConfig getInstance(){
        return SysSetupHolder.instance;
    }
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    private Long id;
    @Column
    private int initDbSource;//主动初始化数据源
    @Column
    private String col1;
    @Column
    private String col2;
    @Column
    private int col3;//开启sql执行记录功能
    @Column
    private int col4;
}